package com.mdp.workflow.comm.dict;

import org.flowable.common.engine.api.delegate.event.FlowableEngineEventType;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

public class FormUtil {
    public static final String NEED_UPDATE_FORM_DATA_FIELD_ID_LIST = "";

    /**
     * 外部接口数据推送时机
     */
    static Set<FlowableEngineEventType> formDataPushEvents=new HashSet<>();
    static {
        formDataPushEvents=new HashSet<>(Arrays.asList(
                FlowableEngineEventType.PROCESS_STARTED,
                FlowableEngineEventType.TASK_COMPLETED,
                FlowableEngineEventType.TASK_CREATED,
                FlowableEngineEventType.TASK_ASSIGNED,
                FlowableEngineEventType.PROCESS_CANCELLED,
                FlowableEngineEventType.PROCESS_COMPLETED_WITH_ERROR_END_EVENT,
                FlowableEngineEventType.PROCESS_COMPLETED_WITH_ESCALATION_END_EVENT,
                FlowableEngineEventType.PROCESS_COMPLETED,
                FlowableEngineEventType.PROCESS_COMPLETED_WITH_ERROR_END_EVENT
                )
        );
    }

}
